package com.itsitio.registeradmin.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.itsitio.registeradmin.dao.NewsDao;
import com.itsitio.registeradmin.model.News;
import com.itsitio.registeradmin.service.NewsSrv;

@Service
public class NewsSrvImpl implements NewsSrv{

	@Autowired
	private NewsDao newsDao;
	
	@Override
	public List<News> findAllNews() {
		return this.newsDao.obtenerTodos();
	}


}
